/*
 * Copyright (c) 2011 Nokia Corporation.
 */

#include <QtGui/QApplication>
#include <QtDeclarative>

#include "clientsocket.h"
#include "serversocket.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    qmlRegisterType<ClientSocket>("SocketDemo", 1, 0, "ClientSocket");
    qmlRegisterType<ServerSocket>("SocketDemo", 1, 0, "ServerSocket");

    QDeclarativeView view;
    view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
    view.setSource(QUrl::fromLocalFile("qml/SocketDemo/main.qml"));
    view.showFullScreen();

    return app.exec();
}
